﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Web.Services;
using System.Web.Script.Services;

namespace AxialWeb
{
	public class Plain
	{
		public string Data { get; set; }
	}

	public partial class PageMethod : System.Web.UI.Page
	{
		public void ShowIt(object obj)
		{
			lblChangeMe.Text = obj.ToString();
		}

		[WebMethod]
		public static bool ReturnTrue()
		{
			return true;
		}

		[WebMethod]
		public static Plain ReturnObject()
		{
			return new Plain { Data = "i'm data" };
		}

		[WebMethod]
		public static int ReflectInt(int value)
		{
			return value;
		}

		[WebMethod]
		public static void Throw()
		{
			throw new Exception("here's an exception");
		}
	}
}
